body {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑", sans-serif;
    background-color: #f5f5f5;
/* 页面容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 错误提示消息样式 */
.error-message {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    background-color: #fff;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.username {
    font-size: 14px;
    color: #333;
}

.login-btn, .register-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    margin-left: 5px;
}

.login-btn:hover, .register-btn:hover {
    background-color: #0056b3;
}

.register-btn {
    background-color: #28a745;
}

.register-btn:hover {
    background-color: #1e7e34;
}

.logo-link {
    display: inline-block;
    height: 75px;
    text-decoration: none;
}

.logo {
    height: 100px;
    width: auto;
    cursor: pointer;
}

.nav {
    text-decoration: underline;
    color: #003366;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav:hover {
    color: #005599;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
}

.new-search-bar .search-btn:hover {
    background-color: #0056b3;
}

/* 响应式适配 - 搜索栏 */
@media (max-width: 768px) {
    .new-search-bar {
        padding: 0 15px;
        margin: 15px 0;
        max-width: 100%;
    }
    
    .new-search-bar .search-input {
        font-size: 14px;
    }
    
    .new-search-bar .search-input::placeholder {
        font-size: 14px;
    }
    
    .new-search-bar .search-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .new-search-bar {
        padding: 0 10px;
        height: 45px;
    }
    
    .new-search-bar .search-icon {
        width: 20px;
        height: 20px;
    }
    
    .new-search-bar .search-input {
        font-size: 13px;
    }
    
    .new-search-bar .search-input::placeholder {
        font-size: 13px;
    }
    
    .new-search-bar .search-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 页面导航样式 */
.page-nav {
    display: flex;
    gap: 80px;
    margin: 30px 0 20px 0;
    padding: 0;
    justify-content: center;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    padding: 0;
    position: relative;
}

.nav-item.nav-link {
    cursor: pointer;
}

.nav-text {
    font-size: 20px;
    font-weight: normal;
    color: #666;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.nav-indicator {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-line {
    width: 100%;
    height: 2px;
    background-color: #ddd;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.nav-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #007bff;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-item.active .nav-text {
    font-weight: bold;
    color: #007bff;
}

.nav-item.active .nav-arrow {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-item.active .nav-line {
    background-color: #007bff;
}

.nav-item:hover .nav-text {
    color: #007bff;
}

.nav-item:hover .nav-line {
    background-color: #007bff;
}

.nav-item:hover .nav-arrow {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background-color: #6699cc;
    padding: 10px 20px;
    border-radius: 5px;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    margin-left: 5px;
    display: none;
}

.logout-btn:hover {
    background-color: #c82333;
}

.search-bar {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 50px;
}

.search-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    opacity: 0.7;
}

.search-input {
    flex: 1;
    height: 36px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    padding: 0 10px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #0056b3;
}

/* 车辆列表容器样式 */
.car-list-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.car-list-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 车辆列表样式 */
.car-list {
    margin: 0;
    min-height: 400px;
}

/* 车辆项样式 */
.car-item {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 车辆名称区域 */
.car-name-section {
    margin-bottom: 12px;
}

.car-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

/* 车辆基本信息 */
.car-basic-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.car-color, .car-seats, .car-power {
    font-size: 13px;
    color: #666;
    padding: 2px 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* 车辆详情行 */
.car-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 12px;
}

.car-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-label {
    font-size: 13px;
    color: #888;
    min-width: 60px;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 状态样式 */
.status-0 { color: #28a745; }
.status-1 { color: #dc3545; }
.status-2 { color: #ffc107; }

/* 可用性信息 */
.car-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 车辆操作区域样式 */
.car-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    margin-left: auto;
    min-height: 100px;
}

/* 价格区域样式 */
.price-section {
    text-align: right;
    margin-bottom: 15px;
}

.price-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

/* 预约按钮样式 */
.reserve-btn {
    background-color: #e6c289;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.car-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 车辆缩略图样式 */
.car-thumbnail {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 车辆图片容器样式 */
.car-image-container {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 车辆信息样式 */
.car-info {
    flex: 1;
    padding: 0 10px;
}

.car-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.car-color, .car-license, .car-status, .car-seats {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 车辆价格和操作区域样式 */
.car-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 80px;
    margin-left: 20px;
}

/* 日租金样式 - 红色加粗 */
.daily-price {
    color: #ff3e3e;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.car-price {
    color: #ff6b35;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-unit {
    font-size: 14px;
    font-weight: normal;
}

.reserve-btn {
    background-color: #e6c289;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.reserve-btn:hover {
    background-color: #d4b17a;
    transform: scale(1.05);
}

.reserve-btn:active {
    transform: scale(0.95);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 无车辆提示样式 */
.no-cars {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 加载状态样式 */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 新搜索栏样式 */
.new-search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 25px; /* 左右边界为半圆 */
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.new-search-bar .search-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* 没有更多数据样式 */
.no-more-data {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.new-search-bar .search-input {
    flex: 1;
    height: 36px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    padding: 0 10px;
}

.new-search-bar .search-input::placeholder {
    color: #999;
    font-size: 16px;
}

.new-search-bar .search-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .car-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .car-image-container {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .car-actions {
        align-items: stretch;
        margin-left: 0;
        margin-top: 20px;
        min-height: auto;
    }
    
    .price-section {
        text-align: left;
        margin-bottom: 15px;
    }
    
    .car-details-row,
    .car-basic-info {
        gap: 10px;
    }
    
    .reserve-btn {
        width: 100%;
    }
    
    .page-nav {
        gap: 40px;
    }
    
    .nav-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-section {
        justify-content: center;
    }
    
    .page-nav {
        gap: 20px;
    }
    
    .nav-text {
        font-size: 14px;
    }
    
    .search-bar {
        padding: 0 10px;
    }
    
    .car-thumbnail {
        height: 140px;
    }
}